package com.finance.cooperate.data.feature;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName FeatureAllSet
 * @Description 输出的特征集合
 * @Author shen
 * @Date 2023/8/10 21:24
 * @Modify ...
 */
public interface FeatureAllSet {

    /**
     * @Author shen
     * @Description 输出模型特征
     * @Date 21:29 2022/11/23
     * @Param
     * @return
     **/
    Map<String,String> modelFeature = new HashMap<String,String>() {
        {

            // 对于普通非热编码特征自动 put 进去
            FeatureDefinition[] featureDefinitions = FeatureDefinition.values();
            for(FeatureDefinition f : featureDefinitions) {
                if (!f.getIsOneHot() && f.getStatus()) {
                    put(f.getValue(), f.getValue());
                }
            }

        }

    };

}
